const path = require('path')
const argv = require('minimist')(process.argv.slice(2))

// 指向根路径
exports.resolve = function (dir) {
  return path.resolve(__dirname, '../', dir)
}

// 获取环境参数
const env = argv.NODE_ENV

exports.env = env

// 是否开发环境
exports.isLocal = env === 'local'
